package net.wangds.common.base.module;

/**
 * .
 * <p></p>
 *
 * @author 王东石 2020/7/17 11:34.
 */
public class Pair<K, V> {

    public static <T, S> Pair<T, S> of(T first, S second){
        return new Pair<>(first, second);
    }

    private K first;

    private V second;

    public Pair(){

    }

    public Pair(K key, V value){
        this.first = key;
        this.second = value;
    }

    public K getFirst() {
        return first;
    }

    public void setFirst(K first) {
        this.first = first;
    }

    public V getSecond() {
        return second;
    }

    public void setSecond(V second) {
        this.second = second;
    }
}
